]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: make "gnome-shell" the default gettext domain
authorDan Winship <danw@gnome.org>
Sat, 30 Apr 2011 14:34:51 +0000 (10:34 -0400)
committerDan Winship <danw@gnome.org>
Mon, 16 May 2011 18:57:31 +0000 (14:57 -0400)
Since libmutter uses dgettext(), we can take over the default domain

https://bugzilla.gnome.org/show_bug.cgi?id=649203

js/ui/environment.js
src/main.c

index 2dd9115648ad2971c365384d226e9d222db32bac..4a78b84a7ee165d82585231e5db0c07dd39e3545 100644 (file)
@@ -7,7 +7,7 @@ imports.gi.versions.GdkPixbuf = '2.0';
 imports.gi.versions.Gtk = '3.0';
 
 const Clutter = imports.gi.Clutter;;
-const Gettext = imports.gettext.domain('gnome-shell');
+const Gettext = imports.gettext;
 const GLib = imports.gi.GLib;
 const Gtk = imports.gi.Gtk;
 const Shell = imports.gi.Shell;
index 5472953b91b04bece413205847aea5a1d0c6df71..c9c9d6e12339cd23532bd5ab5eaf31abdb485e86 100644 (file)
@@ -458,6 +458,7 @@ main (int argc, char **argv)
 
   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  textdomain (GETTEXT_PACKAGE);
 
   ctx = meta_get_option_context ();
   g_option_context_add_main_entries (ctx, gnome_shell_options, GETTEXT_PACKAGE);